package com.yun.zf.common.esIndex;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "order_index", shards = 1, replicas = 0)
public class OrderIndexTemplate {

    @Id
    private Long oId;
    @Field(type = FieldType.Long)
    private Long provinceCode;  // 省级区划代码
    @Field(type = FieldType.Long)
    private Long cityCode;
    @Field(type = FieldType.Keyword)
    private String houseId;
    @Field(type = FieldType.Keyword)
    private String type;
    @Field(type = FieldType.Keyword)
    private String cusName;
    @Field(type = FieldType.Keyword)
    private String cusIphone;
    @Field(type = FieldType.Keyword)
    private String ownName;
    @Field(type = FieldType.Keyword)
    private String ownIphone;
    @Field(type = FieldType.Keyword)
    private String status;
    @Field(type = FieldType.Keyword)
    private String createTime;

}
